package com.sgcc.ln.pmos.e_ln_order.contract;

import com.sgcc.ln.pmos.common.base.IView;
import com.sgcc.ln.pmos.common.bean.BaseResponse;
import com.sgcc.ln.pmos.e_ln_order.bean.IndentBean;

public class IndentContract {
    public interface View extends IView {
        void querySuccess(IndentBean response);

        void queryFailed();

        void cancelBargainSuccess(BaseResponse response);

        void userRejectBargainSuccess(BaseResponse response);

        void beforeSubmitSuccess(BaseResponse response);

        void orderCheckSuccess(String response);
    }

    public interface Presenter {
        /**
         * 订单列表
         *
         * @param pageSize
         * @param isLoading
         */
        void getIndentList(int pageSize, boolean isLoading);

        /**
         * 撤销议价
         *
         * @param relationId 订单ID
         */
        void cancelBargain(String relationId);

        /**
         * 驳回议价
         *
         * @param relationId 订单ID
         */
        void userRejectBargain(String relationId);

        /**
         * 立即提交
         *
         * @param relationId 订单ID
         */
        void beforeSubmit(String relationId);


        /**
         * 订单校验
         *
         * @param membersId 售电公司ID(商品详情标题-店铺ID)
         * @param combId    套餐id
         * @param startDate 上架时间开始
         * @param endDate   上架时间结束
         */
        void orderCheck(String response, String membersId, String combId, String startDate, String endDate);
    }
}
